package com.sychip.fhc.app.data.repo

import com.sychip.fhc.app.data.source.dto.WsnDeviceDto
import com.sychip.fhc.app.data.source.dto.WsnDeviceRssiDto
import com.sychip.fhc.app.data.source.dto.WsnTestRecordDto
import kotlinx.coroutines.flow.Flow

interface WsnTestRecordRepo {
    fun observeAll(usbId: String): Flow<List<WsnTestRecordDto>>
    suspend fun getAll(usbId: String = ""): List<WsnTestRecordDto>

    suspend fun add(usbId: String, fromTime: Long, routeName: String): Flow<WsnTestRecordDto>

    suspend fun add(usbId: String= "", fromTime: Long, toTime: Long, projectName: String, routeName: String): Flow<WsnTestRecordDto>

    suspend fun getByFromTime(fromTime: Long): WsnTestRecordDto
    suspend fun updateByFromTime(fromTime: Long, toTime: Long, projectName: String):WsnTestRecordDto
    suspend fun deleteByFromTime(fromTime: Long): Int
    suspend fun deleteAll(usbId: String):Int

}